package mozivds

import (
	"net/url"

	"github.com/bububa/opentaobao/model"
)

// AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest 删除租户管理员服务 API请求
// alibaba.mozi.vds.tenant.api.service.removeadmin
//
// 删除租户管理员top服务
type AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest struct {
	model.Params
	// 请求入参
	_param *RemoveTenantAdminsRequest
}

// NewAlibabaMoziVdsTenantApiServiceRemoveadminRequest 初始化AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest对象
func NewAlibabaMoziVdsTenantApiServiceRemoveadminRequest() *AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest {
	return &AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest{
		Params: model.NewParams(),
	}
}

// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) GetApiMethodName() string {
	return "alibaba.mozi.vds.tenant.api.service.removeadmin"
}

// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) GetApiParams() url.Values {
	params := url.Values{}
	for k, v := range r.GetRawParams() {
		params.Set(k, v.String())
	}
	return params
}

// SetParam is Param Setter
// 请求入参
func (r *AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) SetParam(_param *RemoveTenantAdminsRequest) error {
	r._param = _param
	r.Set("param", _param)
	return nil
}

// GetParam Param Getter
func (r AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) GetParam() *RemoveTenantAdminsRequest {
	return r._param
}
